﻿

namespace Chain.BLL
{
    using Chain.IDAL;
    using Chain.Model;
    using System;
    using System.Collections;
    using System.Collections.Generic;
    using System.Data;
    using System.Runtime.InteropServices;
    public class ScoreMoneyAwards
    {
        private readonly Chain.IDAL.ScoreMoneyAwards dal = new Chain.IDAL.ScoreMoneyAwards();
        public int Add(Chain.Model.ScoreMoneyAwards model)
        {
            return this.dal.Add(model);
        }
        public bool Delete(int ID)
        {
            return this.dal.Delete(ID);
        }
        public bool Exists(int ID)
        {
            return this.dal.Exists(ID);
        }
        public bool Update(Chain.Model.ScoreMoneyAwards model)
        {
            return this.dal.Update(model);
        }
        public DataSet GetList(string strWhere)
        {
            return this.dal.GetList(strWhere);
        }
        public DataSet GetList(int Top, string strWhere, string filedOrder)
        {
            return this.dal.GetList(Top, strWhere, filedOrder);
        }
        public DataSet GetScoreMoneyAwardsInfo(int PageSize, int PageIndex, out int resCount, params string[] strWhere)
        {
            return this.dal.GetScoreMoneyAwardsInfo(PageSize, PageIndex, out resCount, strWhere);
        }
        public Chain.Model.ScoreMoneyAwards GetModel(int ID)
        {
            return this.dal.GetModel(ID);
        }
        public DataTable GetItem(int ID)
        {
            return this.dal.GetItem(ID).Tables[0];
        }
        /// <summary>
        /// 软删除
        /// </summary>
        /// <param name="ID"></param>
        /// <returns></returns>
        public bool IsDelete(int ID)
        {
            return this.dal.IsDelete(ID);
        }
    }
}
